package enum

import "mldong/utility"

func init() {
	utility.RegisterEnumValues("菜单类型", "sys_menu_type", []interface{}{
		MENU_TYPE_DIR,
		MENU_TYPE_MENU,
		MENU_TYPE_BUTTON,
		MENU_TYPE_INTERFACE,
	})
}

// 菜单类型枚举
type MenuTypeEnum struct {
	Key     string
	Code    int
	Message string
}

var MENU_TYPE_DIR = MenuTypeEnum{Key: "DIR", Code: 1, Message: "目录"}
var MENU_TYPE_MENU = MenuTypeEnum{Key: "MENU", Code: 2, Message: "菜单"}
var MENU_TYPE_BUTTON = MenuTypeEnum{Key: "BUTTON", Code: 3, Message: "按钮"}
var MENU_TYPE_INTERFACE = MenuTypeEnum{Key: "INTERFACE", Code: 4, Message: "接口"}
